﻿<%@ Page Language="C#" MasterPageFile="~/Enterprise/Master/AdminMaster.Master"
    AutoEventWireup="true" CodeBehind="MessageList.aspx.cs" Inherits="HZ.DrugTrade.Web.Enterprise.MessageMange.MessageList"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="maincon">
        <div id="note">
            <%=Tip %>
        </div>
        <div id="note2">
        </div>
    </div>
    <asp:GridView ID="gvwMsgList" runat="server" AutoGenerateColumns="False" Width="100%"
        EmptyDataText="暂无消息！" OnRowDataBound="gvwMsgList_RowDataBound" Visible="false">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 %>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="标题">
                <ItemTemplate>
                    <a href='MessageInfo.aspx?mID=<%# Eval("MessageID") %>&flag=1'>
                        <asp:Label runat="server" ID="lblTitle" Text='<%# Server.HtmlEncode(Eval("Title").ToString()) %>'></asp:Label></a>
                </ItemTemplate>
                <HeaderStyle Width="300px" />
            </asp:TemplateField>
            <asp:BoundField DataField="SenderName" HeaderText="发件人" HeaderStyle-Width="100px" />
            <asp:BoundField DataField="SendTime" HeaderText="发送时间" HeaderStyle-Width="100px" />
            <asp:TemplateField HeaderText="状态">
                <ItemTemplate>
                    <asp:Literal ID="ltrStatus" runat="server" Text='<%# Eval("Status") %>'></asp:Literal>
                </ItemTemplate>
                <HeaderStyle Width="80px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText=" ">
                <HeaderTemplate>
                    <input id="chkAll" name="chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwMsgList','chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <input type="checkbox" name="chkChildUser" id="chkChildUser" value='<%#Eval("MessageID")%>'
                        onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwMsgList','chkAll');" />
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:GridView ID="gvwNotice" runat="server" AutoGenerateColumns="False" Width="100%"
        EmptyDataText="暂无公告信息！" Visible="false">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 %>
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:TemplateField>
                <ItemTemplate>
                    <a href='MessageInfo.aspx?mID=<%# Eval("NoticeSerialID") %>&flag=2'>
                        <asp:Label runat="server" ID="lblNtitle" Text='<%# Eval("Title") %>'></asp:Label></a>
                </ItemTemplate>
                <HeaderStyle Width="300px" />
            </asp:TemplateField>
            <asp:BoundField DataField="SenderName" HeaderText="发件人" HeaderStyle-Width="100px" />
            <asp:BoundField DataField="SendTime" HeaderText="发送时间" HeaderStyle-Width="100px" />
            <asp:TemplateField HeaderText=" " Visible="false">
                <HeaderTemplate>
                    <input id="addTable_chkAll" name="addTable_chkAll" type="checkbox" onclick="SelectAllCheckboxes(this,'ctl00_ContentPlaceHolder1_gvwInvoice','addTable_chkAll'); " />
                </HeaderTemplate>
                <ItemTemplate>
                    <input type="checkbox" name="chkMsg" id="chkMsg" value='<%#Eval("NoticeSerialID")%>'
                        onclick="chkChecked(this,'ctl00_ContentPlaceHolder1_gvwInvoice','addTable_chkAll');"
                        runat="server" />
                </ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div class="page">
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
        </webdiyer:AspNetPager>
    </div>
    <div class="listctrl">
        <hz:HzButton ID="btnDel" runat="server" Text="删除" CssClass="btn" OnClientClick=" if(checkSelectedItems('ctl00_ContentPlaceHolder1_gvwMsgList','请至少选定一条消息！')) {return confirm('确实要删除？');}return false;"
            Visible="false" OnClick="btnDel_Click" />
        <hz:HzButton runat="server" ID="btnBack" PostBackUrl="MessageGet.aspx" Text="返回"
            CssClass="btn" />
    </div>
</asp:Content>
